package com.wz.project.tsjJob.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.wz.project.tsjJob.mapper.ViewJobTsjMapper;
import com.wz.project.tsjJob.domain.ViewJobTsj;
import com.wz.project.tsjJob.service.IViewJobTsjService;
import com.wz.common.utils.text.Convert;

/**
 * 大屏显示Service业务层处理
 * 
 * @author wz
 * @date 2024-01-11
 */
@Service
public class ViewJobTsjServiceImpl implements IViewJobTsjService 
{
    @Autowired
    private ViewJobTsjMapper viewJobTsjMapper;

    /**
     * 查询大屏显示
     * 
     * @param jobId 大屏显示ID
     * @return 大屏显示
     */
    @Override
    public ViewJobTsj selectViewJobTsjById(String jobId)
    {
        return viewJobTsjMapper.selectViewJobTsjById(jobId);
    }

    /**
     * 查询大屏显示列表
     * 
     * @param viewJobTsj 大屏显示
     * @return 大屏显示
     */
    @Override
    public List<ViewJobTsj> selectViewJobTsjList(ViewJobTsj viewJobTsj)
    {
        return viewJobTsjMapper.selectViewJobTsjList(viewJobTsj);
    }

    /**
     * 新增大屏显示
     * 
     * @param viewJobTsj 大屏显示
     * @return 结果
     */
    @Override
    public int insertViewJobTsj(ViewJobTsj viewJobTsj)
    {
        return viewJobTsjMapper.insertViewJobTsj(viewJobTsj);
    }

    /**
     * 修改大屏显示
     * 
     * @param viewJobTsj 大屏显示
     * @return 结果
     */
    @Override
    public int updateViewJobTsj(ViewJobTsj viewJobTsj)
    {
        return viewJobTsjMapper.updateViewJobTsj(viewJobTsj);
    }

    /**
     * 删除大屏显示对象
     * 
     * @param ids 需要删除的数据ID
     * @return 结果
     */
    @Override
    public int deleteViewJobTsjByIds(String ids)
    {
        return viewJobTsjMapper.deleteViewJobTsjByIds(Convert.toStrArray(ids));
    }

    /**
     * 删除大屏显示信息
     * 
     * @param jobId 大屏显示ID
     * @return 结果
     */
    @Override
    public int deleteViewJobTsjById(String jobId)
    {
        return viewJobTsjMapper.deleteViewJobTsjById(jobId);
    }
}
